home *** CD-ROM | disk | FTP | other *** search
/ NOVA - For the NeXT Workstation / NOVA - For the NeXT Workstation.iso / Documents / NeXTAnswers / sysadmin.600 < prev    next >
Text File  |  1992-02-06  |  4KB  |  100 lines

  1. {\rtf0\ansi{\fonttbl\f0\fnil Times-Roman;\f2\fmodern Ohlfs;}
  2. \paperw11220
  3. \paperh7740
  4. \margl120
  5. \margr160
  6. {\colortbl\red0\green0\blue0;}
  7. \pard\tx960\tx1920\tx2880\tx3840\tx4800\tx5760\tx6720\tx7680\tx8640\tx9600\f0\b0\i0\ul0\fs28 sendmail forwarding\
  8. \
  9. Q:  How do I cause mail to destinations outside our local network to be forwarded automatically through some outside service?\
  10. \
  11. A:  Some minor changes to your mailhost's 
  12. \b sendmail.cf
  13. \b0  file will do the trick.  The sendmail configuration file, 
  14. \b /etc/sendmail/sendmail.cf
  15. \b0  is either a link to 
  16. \b sendmail.mailhost.cf
  17. \b0  or is some variant of the mailhost configuration.  You will edit this file on your mailhost — the machine which is responsible for forwarding mail.\
  18. \
  19. Look for the following lines near the top of the file (in the default 
  20. \b sendmail.mailhost.cf
  21. \b0 , they start at line 30):\
  22. \
  23.  
  24. \pard\tx1240\tx2480\tx3740\tx4980\tx6240\tx7480\tx8720\tx9980\tx11220\tx12480\f2\fs20\fi720\fc0 # If you want to use a relay mailer, examine ruleset 0.  There are some\
  25. # rules that need to be uncommented\
  26. DMuucp\
  27. \
  28. # major relay host: use the $M mailer to send mail to other domains\
  29. # To have mail automatically forwarded to other domains, you should\
  30. # replace this with the name of your major relay host.\
  31. DR mail-relay\
  32. CR mail-relay\
  33.  
  34. \pard\tx960\tx1920\tx2880\tx3840\tx4800\tx5760\tx6720\tx7680\tx8640\tx9600\f0\fs28 \
  35. The line\
  36. \
  37.  
  38. \pard\tx1240\tx2480\tx3740\tx4980\tx6240\tx7480\tx8720\tx9980\tx11220\tx12480\f2\fs20\fi720\fc0 DMuucp\
  39.  
  40. \pard\tx960\tx1920\tx2880\tx3840\tx4800\tx5760\tx6720\tx7680\tx8640\tx9600\f0\fs28 \
  41. tells sendmail that mail destined for a machine off the local network should be forwarded using the “uucp” mailer — i.e., using the UNIX UUCP facility.  The lines \
  42. \
  43.  
  44. \pard\tx1240\tx2480\tx3740\tx4980\tx6240\tx7480\tx8720\tx9980\tx11220\tx12480\f2\fs20\fi720\fc0 DR mail-relay\
  45. CR mail-relay\
  46.  
  47. \pard\tx960\tx1920\tx2880\tx3840\tx4800\tx5760\tx6720\tx7680\tx8640\tx9600\f0\fs28 \
  48. indicate that the machine called 
  49. \b mail-relay
  50. \b0  is the forwarding host.  Change these three lines to reflect your actual situation.  Typically, 
  51. \b uucp
  52. \b0  is the appropriate mailer if you're not on the Internet.  Either replace 
  53. \b mail-relay
  54. \b0  with the name of your UUCP partner, or ensure that 
  55. \b mail-relay
  56. \b0  is a host alias of that partner.  (Note that if you make 
  57. \b mail-relay
  58. \b0  be an alias for that partner and you're using UUCP as the relay mail mechanism, you'll have to modify the UUCP configuration files to reflect this alias.)\
  59. \
  60. If you look at the comments which begin the excerpt included above, you'll see a note regarding uncommenting some lines in “ruleset 0.”  Look for the following lines in 
  61. \b sendmail.cf
  62. \b0  (at line 323 in the default 
  63. \b sendmail.mailhost.cf
  64. \b0 ):\
  65. \
  66.  
  67. \pard\tx1240\tx3180\tx4980\tx7680\tx8720\tx9980\tx11220\tx12480\f2\fs20\fi720\fc0 # If you want to pass all other explicit domain names up the ladder\
  68. # to our forwarder then uncomment the following line.\
  69. #R$*<@$*.$+>$*    $#$M    $@$R $:$1<@$2.$3>$4    user@any.domain\
  70. # and comment out this one.\
  71. R$*<@$+.$->$*    $#ddn $@ $2.$3 $:$1<@$2.$3>$4    user@any.domain\
  72.  
  73. \pard\tx960\tx1920\tx2880\tx3840\tx4800\tx5760\tx6720\tx7680\tx8640\tx9600\f0\fs28 \
  74. These lines describe how to forward non-local mail.  In the default file for a mailhost, such mail is forwarded using the 
  75. \b ddn
  76. \b0  mailer (i.e., over the Internet).  We want to change that, to use the mail specified above, in the 
  77. \b DM
  78. \b0  line.  To do this, uncomment the third line and comment out the fifth line:\
  79. \
  80.  
  81. \pard\tx1240\tx3180\tx4980\tx7680\tx8720\tx9980\tx11220\tx12480\f2\fs20\fi720\fc0 # If you want to pass all other explicit domain names up the ladder\
  82. # to our forwarder then uncomment the following line.\
  83. R$*<@$*.$+>$*    $#$M    $@$R $:$1<@$2.$3>$4    user@any.domain\
  84. # and comment out this one.\
  85. #R$*<@$+.$->$*    $#ddn $@ $2.$3 $:$1<@$2.$3>$4    user@any.domain\
  86.  
  87. \pard\tx960\tx1920\tx2880\tx3840\tx4800\tx5760\tx6720\tx7680\tx8640\tx9600\f0\fs28 \
  88.  
  89. \b WARNING
  90. \b0 : Be 
  91. \i very
  92. \i0  careful when you modify a sendmail configuration file.  As you might notice, the syntax is arcane and cryptic, and the “rewriting rules” in the configuration file are intricate.\
  93. \
  94. QA600\
  95. \
  96. Valid for 1.0 \
  97. Valid for 2.0\
  98. \
  99.  
  100.